//
//  SortModel.m
//  项目
//
//  Created by 关雷 on 15-1-4.
//  Copyright (c) 2015年 张诗雨. All rights reserved.
//

#import "SortModel.h"

@implementation SortModel
- (void)dealloc
{
    [_type release];
    [_name release];
    [_desc release];
    [_coverimg release];
    [_isnew release];
    [super dealloc];
}
- (instancetype)initWithType:(NSString *)type name:(NSString *)name desc:(NSString *)desc coverimg:(NSString *)coverimg isnew:(NSString *)isnew
{
    self = [super init];
    if (self) {
        self.type = type;
        self.name = name;
        self.desc = desc;
        self.coverimg = coverimg;
        self.isnew = isnew;
    }
    return self;
}
+ (id)SortModelWithType:(NSString *)type name:(NSString *)name desc:(NSString *)desc coverimg:(NSString *)coverimg isnew:(NSString *)isnew
{
    SortModel * sort = [[SortModel alloc] initWithType:type name:name desc:desc coverimg:coverimg isnew:isnew];
    return [sort autorelease];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}
- (id)valueForUndefinedKey:(NSString *)key
{
    return @"";
}
@end
